<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeBehind="UsersOverview.aspx.cs" Inherits="MusicmanWeb.ADMIN.UsersOverview" Title="Users management" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <div class="shim column">
    </div>
    <div class="page" id="home">
        <div id="sidebar">
        <table>
            <tr>
                <th colspan="2">
                    Legenda
                </th>
            </tr>
            <tr>
                <td class="activeusers" style="width: 20px;">
                    &nbsp;
                </td>
                <td>
                    actiive users
                </td>
            </tr>
            <tr>
                <td class="idleusers" style="width: 20px;">
                    &nbsp;
                </td>
                <td>
                    idle users                
                </td>
            </tr>
            <tr>
                <td class="veryidleusers" style="width: 20px;">
                    &nbsp;
                </td>
                <td>
                    very idle users                
                </td>
            </tr>
            <tr>
                <td class="disabledusers" style="width: 20px;">
                    &nbsp;
                </td>
                <td>
                    disabled users                
                </td>
            </tr>
            
        </table>
        <br />
        <br />        
        </div>
        <div id="content">
            <asp:GridView ID="UsersGV" runat="server" 
                AutoGenerateColumns="False"
                OnRowDataBound="UsersGV_RowDataBound"
                AllowPaging="true"
                PageSize="15"
                AllowSorting="true"
                PagerSettings-Position="TopAndBottom"
                OnSorting="UsersGV_Sorting"
                OnPageIndexChanging="UsersGV_PageIndexChanging">
                <Columns>
                    <asp:BoundField DataField="Firstname" HeaderText="Firstname" SortExpression="Firstname"/>
                    <asp:BoundField DataField="Lastname" HeaderText="Lastname" SortExpression="Lastname"/>
                    <asp:BoundField DataField="Emailaddress" HeaderText="Email adress" SortExpression="Email"/>
                    <asp:BoundField DataField="MailRequest" HeaderText="MailRequest" />
                    <asp:BoundField HeaderText="Last logged" SortExpression="Loggeddate"/>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <a href='#' onclick="window.open('UserStats.aspx?PersonID=<%# Eval("PersonId") %>', 'userstats', 'width=500,height=420,menubar=no,fullscreen=no','breplace=yes').focus();" >
                                <img src="../Images/clipboard.png" width="20" height="20" alt="details" />
                            </a>                                    
                        </ItemTemplate> 
                    </asp:TemplateField>             
                </Columns>
            </asp:GridView>
        </div>
        </div>
</asp:Content>
